<template>
	<view class="content">
		<lxc_nav text='详情' :bacicon="'#fff'" :background='bac'></lxc_nav>
		<view id="box">
			<view class="ba_top">
				<image src="../../static/transaction/detail.png" mode=""></image>
			</view>
			<view class="title">
				<text>
					1473224.221
				</text>
				</br>
				<text>
					USDT
				</text>
			</view>
			<view class="detail_list">
				<view class="list">
					<text class="left_list" >
						类型
					</text>
					<text class="right_list">
						小时收益
					</text>
				</view>
				<view class="list">
					<text class="left_list" >
						币种
					</text>
					<text class="right_list">
						USDT
					</text>
				</view><view class="list">
					<text class="left_list" >
						状态
					</text>
					<text class="right_list">
						无
					</text>
				</view><view class="list">
					<text class="left_list" >
						获取收益
					</text>
					<text class="right_list">
						1478456.2130 USDT
					</text>
				</view><view class="list">
					<text class="left_list" >
						时间
					</text>
					<text class="right_list">
						2021-10-09 00:44:45
					</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import lxc_nav from '../../components/nav.vue'
	export default {
		components: {
			lxc_nav
		},
		onPageScroll(e) {
			// 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
			// this.scrollTop = e.scrollTop;
			console.log(e.scrollTop);
			if (e.scrollTop > 22) {
				this.bac = {
					backgroundImage: 'linear-gradient(150deg,rgba(25, 137, 250, 1), rgba(18, 174, 255, 1))'
				}
			} else {
				this.bac = {
					backgroundImage: 'linear-gradient(150deg,rgba(25, 137, 250, 0), rgba(18, 174, 255, 0))'
				}
			}
		},
		data() {
			return {
				bac: {
					backgroundImage: 'linear-gradient(150deg,rgba(25, 137, 250, 0), rgba(18, 174, 255, 0))'
				}
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	#box {
		position: relative;
		// color: $u-content-color;
		width: 100vw;
		margin-top: 88rpx;
	}

	.ba_top {
		position: absolute;
		width: 100vw;
		margin-top: -22vw;
		
	}
	.ba_top image{
		width: 100%;
	}
	.title{
		position: relative;
		z-index: 99;
		top: 34rpx;
		text-align: center;
	}
	.title text:nth-child(1){
		font-size: 40rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
		line-height: 40rpx;
	}
	.title text:nth-child(3){
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		line-height: 40rpx;
	}
	.detail_list{
		width: 96vw;
		position: relative;
		margin-left: 2vw;
		z-index: 99;
		top: 50rpx;
		background-color: #FFFFFF;
		border-radius: 20rpx 20rpx 0rpx 0rpx;
	}
	.list{
		height: 98rpx;
		width: 92vw;
		margin-left: 2vw;
		position: relative;
		border-bottom: 1px solid #E0E0E0;
	}
	.left_list{
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #666666;
		line-height: 98rpx;
	}
	.right_list{
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 98rpx;
		position: absolute;
		right: 0rpx;
	}
</style>
